﻿namespace Web.Control.Member.My.Settings
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.Security;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;
	using System.Text.RegularExpressions;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;
	using System.Collections;
	using System.IO;

    using Model.WWW_User.User;
    using BLF.WWW_User.Users;

    public class Generalsettings : BaseControl
    {
       
        protected string bum;
        protected string dum;
       
        protected override void OnLoad(EventArgs e)
        {
            if (HttpContext.Current.User.Identity.Name == "")
            {
                Page.Response.Redirect(LoginHost + "/User/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
            }
           
                 bum = User.GetUserTimezone(HttpContext.Current.User.Identity.Name,out dum);
                 
              
                if (bum == null || dum == null)
                {
                    Page.Response.Redirect(LoginHost + "/User/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
                }
                Response.Write("<script>var MemberNo='" + HttpContext.Current.User.Identity.Name + "'</script>");
           
            base.OnLoad(e);
        }
       
          
          
    }
}

